# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=astyle
pkgver=3.6.3
pkgrel=0
pkgdesc="Automatic code formatter"
url="https://sourceforge.net/projects/astyle/"
arch="all"
license="MIT"
depends_dev="$pkgname=$pkgver-r$pkgrel"
subpackages="$pkgname-dev $pkgname-libs $pkgname-doc"
source="https://gitlab.com/saalen/astyle/-/archive/$pkgver/astyle-$pkgver.tar.bz2
	makefile-install.patch
	"
builddir="$srcdir/astyle-$pkgver/AStyle/build/gcc"

build() {
	make shared release
}

check() {
	./bin/astyle --version
}

package() {
	DESTDIR="$pkgdir" make INSTALL=install install
}

sha512sums="
79f6805057d8d84903f8d92c44a7a83c931aa0826af545170c4b32b6836b86933f6b408b8b414666d13fb20c0f863cbc782174ec6ab2be6afdb99ca18d9e65db  astyle-3.6.3.tar.bz2
6bfaba1437af39cb9250f292fdf1409d83f2b9b73c4bb4abf5c06b0d993b2dec050e49ed904650042c2dacd92c4bfb0a32026900a47d5a28635985aa9116833e  makefile-install.patch
"
